package com.dabai.applicationmanager.adapter;

import android.content.Context;
import android.net.wifi.p2p.WifiP2pDevice;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.dabai.applicationmanager.R;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;

public class ScanUserAdapter extends BaseQuickAdapter<WifiP2pDevice, BaseViewHolder> {


    public ScanUserAdapter(ArrayList<WifiP2pDevice> freezerInfo, Context context) {
        super(R.layout.item_scan_user, freezerInfo);
        this.context = context;

    }

    Context context;

    @Override
    protected void convert(@NotNull BaseViewHolder helper, @NotNull WifiP2pDevice wifiP2pDevice) {

        helper.setText(R.id.textView1, wifiP2pDevice.deviceName);
        helper.setText(R.id.textView2, wifiP2pDevice.deviceAddress);

    }


}
